#pragma once
#include "afxwin.h"


// CLineManage dialog

class CLineManage : public CDialogEx
{
	DECLARE_DYNAMIC(CLineManage)

public:
	CLineManage(CWnd* pParent, CMeasureProject& project);   // standard constructor
	virtual ~CLineManage();

// Dialog Data
	enum { IDD = IDD_LINE_MANAGE };

  static void AddLine(CWnd* owner, BOOL fixStation, const tstring &stationName, const CMeasureLine* ml);
  static void DeleteLine(CWnd* owner, CMeasureLine* line);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
  afx_msg void OnOk();
  afx_msg void OnCancel();
  afx_msg void OnLineAdd();
  afx_msg void OnLineDelete();
  afx_msg void OnLineListSelChange();
  virtual BOOL OnInitDialog();

private:
  CMeasureProject&  project_;
  CButton wnd_line_delete_;
  CListBox wnd_line_list_;
  CString station_;
};
